(function (win) {
    win.GLOBAL_CONFIG={
        url: "http://172.31.46.2:9092",
        socket: "127.0.0.1:28410",
        fastdfs: "http://172.31.46.2:8888",
        // fastdfs: "http://172.31.46.73:8888",
        rootDir: "/",
        serviceInfo: [
            {
                name: '张三',
                phone: '18895358888',
                email: '2563388888@iflytek.com'
            },
            {
                name: '李四',
                phone: '18895358888',
                email: '2563388888@iflytek.com'
            },
        ], // 客服信息
    }

})(window);

window.onload = function () {
    return
    var length = document.getElementsByTagName("script").length;
    var chunkMark = document.getElementsByTagName("script")[length-2].src.split('chunk-vendors.')[1].split('.')[0];
    var appMark = document.getElementsByTagName("script")[length-1].src.split('app.')[1].split('.')[0];
    console.log( 
        'script', 
        document.getElementsByTagName("script"), 
        document.getElementsByTagName("link"), 
        chunkMark, appMark
    );

    // dist/js/chunk-vendors.dcadff55.js 取dcadff55
    var chunkUrl = 'dcadff55';
    // dist/js/app.c678bba6.js 取c678bba6
    var appUrl = 'c678bba6';


    if( chunkMark !== chunkUrl || appMark !== appUrl ){
        window.location.reload();
    };

}
